import { createApp } from 'vue'
// import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import elementIcon from '@/plugins/element'
import '@/components/index.js'
import pinia from './plugins/pinia'
import BinDatav from 'bin-datav'
import 'bin-datav/lib/styles/index.css'
import '@/styles/main.scss'

function initApp() {
  const app = createApp(App)

  app.use(pinia)
  app.use(elementIcon)
  app.use(BinDatav)
  app.use(router)

  app.mount('#app')
}
initApp()
